using UnityEngine;

public class BallEffectMonitor : MonoBehaviour
{
	[SerializeField]
	private float m_Duration;

	private float m_Time;

	private void OnEnable()
	{
		m_Time = m_Duration;
	}

	private void Update()
	{
		if (m_Time < 0f)
		{
			base.gameObject.SetActive(value: false);
		}
		m_Time -= Time.deltaTime;
	}
}
